package MyLinkedList;

import java.util.LinkedList;

public class Text {
    public static void main(String[] args) {
        LinkedList list = new LinkedList();
        list.addLast(1);
        list.addLast(1);
        list.addLast(1);
        list.addLast(1);
        System.out.println(list.toString());
    }

    public static void main1(String[] args) {
        MyLinkedList list = new MyLinkedList();
        list.addLast(4);
        list.addLast(5);
        list.addLast(5);
        list.addLast(5);
        list.addLast(4);
        //list.addFirst(6);
        list.display();
        //list.addIndex(6,9);
        list.removeAllKey(4);
        list.display();
    }
}
